package com.mindata.blockchain.socket.body;

import com.mindata.blockchain.common.AppId;
import com.mindata.blockchain.common.CommonUtil;

/**
 * @author tanyaowu 2017年3月27日 上午12:12:17
 */
public class BaseBody {
	private Long time = System.currentTimeMillis(); // 消息发送时间
	private String messageId = CommonUtil.generateUuid(); // 每条消息的唯一id
	private String responseMsgId; // 回复的哪条消息
	private String appId = AppId.value; // 自己是谁

	public BaseBody() {
	}

	/**
	 * @return the time
	 */
	public Long getTime() {
		return time;
	}

	/**
	 * @param time the time to set
	 */
	public void setTime(Long time) {
		this.time = time;
	}

	public String getMessageId() {
		return messageId;
	}

	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}

	public String getResponseMsgId() {
		return responseMsgId;
	}

	public void setResponseMsgId(String responseMsgId) {
		this.responseMsgId = responseMsgId;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	@Override
	public String toString() {
		return "BaseBody{" + "time=" + time + ", messageId='" + messageId + '\'' + ", responseMsgId='" + responseMsgId
				+ '\'' + '}';
	}
}
